#include "dsproxy_command_handler.h"

extern "C"
{
#ifdef WIN32
	__declspec(dllexport) 
#endif
	void* LoadModule(const char* pszModuleName, IServerObject * pServerObj)
	{
		DSProxy::command_handler *pHandler = new DSProxy::command_handler();
		pHandler->Init(pszModuleName, pServerObj);
		return (void*)pHandler;
	}

#ifdef WIN32
	__declspec(dllexport)
#endif
	void  UnloadModule(void* handle)
	{
		DSProxy::command_handler *pHandler = (DSProxy::command_handler *)handle;
		if (pHandler)
		{
			pHandler->Fina();
			delete pHandler;
		}
	}
}